//
//  BaseRefreshRequest.h
//  CharonTVProject
//
//  Created by karong on 2023/6/21.
//

#import "BaseRequest.h"

NS_ASSUME_NONNULL_BEGIN

@protocol PagableRequestPotocol <NSObject>

@optional
///页码 从1开始
@property (nonatomic, assign) NSTimeInterval page;
///是否在加载
@property (nonatomic, assign) BOOL loading;
///是否有下一页
@property (nonatomic, assign) BOOL haveMore;
///总数
@property (nonatomic, assign) NSInteger totalCount;
@property (nonatomic, strong) id reponseObject;

///下拉刷新
- (void)refreshDataSuccess:(charonTV_ArrayBlock)success failed:(Failure)failed;
///加载更多
- (void)loadMoreDataSuccess:(charonTV_ArrayBlock)success failed:(Failure)failed;

@end

@interface BaseRefreshRequest : BaseRequest <PagableRequestPotocol>

@end

NS_ASSUME_NONNULL_END
